// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import axios from 'axios'
import App from './App'
import router from './router'

import './assets/css/weixin2.scss'

import vuex from 'vuex'

vuex.use(vuex)

// axios.defaults.baseURL = 'http://hghq.cpp.gg/server/'
axios.defaults.baseURL = 'http://127.0.0.1:8085/'
axios.defaults.headers = {
  'Content-Type': 'application/x-www-form-urlencoded'
}

Vue.config.productionTip = false
Vue.prototype.$ajax = axios
Vue.prototype.qs = require('qs')

var store = new vuex.Store({
  state: {
    show: false
  }
})

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: {
    App
  },
  template: '<App/>'
})
